package com.is.add.service;


import com.is.add.controller.vo.JsonResultVO;
import com.is.add.controller.vo.SettlementVO;
import com.is.add.model.Orders;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface SettleService {
//    SelectSettleStatusVO findSettleStatus();

    List<SettlementVO> loadSettleData(Map<String,String> map) throws Exception;
    /**
     * 修改结算状态
     */
    JsonResultVO updateSettlementStatus(String settlementId, Integer settleStatus);
    /**
     * 修复并生成结算单
     */
    JsonResultVO fixAndCheckSettleOrders(String shopIds, String startTime, String endTime);

    /**
     * 新结算单查询
     */
    List<SettlementVO> findSettleDocument(Map<String, Object> map);

    /**
     * 备用金转存
     * @param settlementIds         结算单IDs
     * @return                      JsonResultVO
     */
    JsonResultVO insertPreDepositSettleData(String settlementIds);

    /**
     * 结算单下的订单
     */
    List<Orders> findOneSettleOrders(String settlementId, int pageNum, int pageSize);

    /**
     * 导出周结算数据
     */
    void exportSettleDoc(HttpServletResponse response, String startTime, String endTime);
}
